<%@ include file="/html/init.jsp"%>

<%
	String tabs1 = "";

	String redirect = PortalUtil.getCurrentURL(renderRequest);

	if (request.getAttribute("tabs1") != null
			&& !request.getAttribute("tabs1").equals("")) {
		tabs1 = request.getAttribute("tabs1").toString();
	} else {
		tabs1 = ParamUtil.getString(request, "tabs1",
				LanguageUtil.get(pageContext, "configModels"));
	}

	PortletURL portletURL = renderResponse.createRenderURL();
	portletURL.setWindowState(WindowState.NORMAL);

	portletURL.setParameter("tabs1", tabs1);

	String currentTab = tabs1;

	String tabNames = LanguageUtil.get(pageContext, "configModels") + "," + LanguageUtil.get(pageContext, "defRules");
%>

<portlet:defineObjects />

<liferay-ui:tabs names="<%=tabNames%>" url="<%=portletURL.toString()%>"
	value="<%=currentTab%>" />

<c:if test='<%=tabs1.equals(LanguageUtil.get(pageContext, "configModels"))%>'>
	<liferay-util:include
		page="/html/softuirulesengineportlet/modelView.jsp"
		servletContext="<%=this.getServletContext()%>" />
</c:if>

<c:if test='<%=tabs1.equals(LanguageUtil.get(pageContext, "defRules"))%>'>
	<liferay-util:include
		page="/html/softuirulesengineportlet/ruleView.jsp"
		servletContext="<%=this.getServletContext()%>" />
</c:if>